//
//  JinCollectionCell.swift
//  lottery
//
//  Created by admin on 16/2/4.
//  Copyright © 2016年 jin. All rights reserved.
//

import UIKit

class JinCollectionCell: UICollectionViewCell {
    @IBOutlet weak var icon: UIImageView!
    @IBOutlet weak var title: UILabel!
    var product:Product!
        {
        didSet
        {
            self.icon.image = UIImage(imageLiteral: product.icon)
            self.title.text = product.title
        }
    }
    override func awakeFromNib() {
        self.icon.layer.cornerRadius = 10
        self.icon.layer.masksToBounds = true
    }
}
